﻿#pragma once
#include "AsTask.h"

// 多任务类，并行任务
class ADF_EXPORT AsMultiTask : public AsTask {
public:
	AsMultiTask();
	AsMultiTask(const QVector<AsTask*>& vTask);

private:
	QVector<AsTask*> m_vChildrenTask;			//所有子任务

protected:
	virtual int onTaskAction() override;		//任务执行动作
	virtual void onResetTaskStatus()override;	//重置任务状态
	virtual void setProcess(AsCoreProcess* pProcess)override;

public:
	void addTask(AsTask* pTask);				//添加任务

};